/**
 * 联系管理员
 */
import React, { Component } from 'react'

export default class ContactManage extends Component {
    constructor(props) {
        super(props);
        this.state = {
            managerInfo: []
        }
    }

    componentDidMount() {
        React.axios('/store-manage/common/store_manager_info.php').then(res => {
            this.setState({
                managerInfo: res.data
            })
        });
    }

    render() {
        return (
            <div className="container">
                <h1>联系管理员</h1>
                <ul>
                    {this.state.managerInfo.map(info => 
                        <li key={info.adminID}>{info.adminName}</li>    
                    )}
                </ul>
            </div>
        )
    }
}
